package org.beynet.jsonbinding.bind;

public class GlossaryDivision {
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((list == null) ? 0 : list.hashCode());
        result = prime * result + ((title == null) ? 0 : title.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        GlossaryDivision other = (GlossaryDivision) obj;
        if (list == null) {
            if (other.list != null)
                return false;
        } else if (!list.equals(other.list))
            return false;
        if (title == null) {
            if (other.title != null)
                return false;
        } else if (!title.equals(other.title))
            return false;
        return true;
    }
    
    @JSONElement(name="title")
    public String getTitle() {
        return(this.title);
    }
    public void setTitle(String title) {
        this.title = title;
    }
    
    
    public GlossaryList getGlossList() {
        return(this.list);
    }
    public void setGlossList(GlossaryList list) {
        this.list = list;
    }
    
    private GlossaryList list;
    private String title ;
}
